window.addEvent('domready', function(){
    new Asset.javascript('js/ckeditor/ckeditor.js');
    new Asset.css('js/plugins/rte.css');
})

window.addEvent('nodeadded', function(node){
    var div = new Element('div');
    var textarea = new Element('textarea').injectInside(div).set('id','txt_'+node.id)
    div.injectInside(node);
    var slide = new Fx.Slide(div, {
    });
    CKEDITOR.replace( 'txt_'+node.id );
});
